package com.glsc.ngateway.flowable.service;

import com.glsc.ngateway.common.base.domain.mysql.flowable.FlowableTenant;
import com.glsc.ngateway.common.base.repo.mysql.flowable.FlowableTenantRepo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FlowableTenantService {

    private static final Logger logger = LoggerFactory.getLogger(FlowableTenantService.class);

    @Autowired
    FlowableTenantRepo flowableTenantRepo;


    public List<FlowableTenant> queryAllTenant() {
        return flowableTenantRepo.queryAllTenant();
    }

    public FlowableTenant updateVersion(FlowableTenant flowableTenant) {
        return flowableTenantRepo.save(flowableTenant);
    }
}